{% extends 'navigation.html' %}
{% load static %}
{% block title %}
    <title>网站首页</title>
{% endblock %}
{% block css %}
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-4.6.1-dist/css/bootstrap.css' %}">
    <link href='https://fonts.googleapis.com/css?family=Droid+Serif' rel='stylesheet' type='text/css'>
    <!--首页样式-->
    <style>
        /*  Page styles  */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font: normal 14px/1.4 Arial, Helvetica, sans-serif;
        }

        .skrollr-desktop body {
            height: 100% !important;
        }

        #skrollr-body {
            height: 100%;
            overflow: visible;
            position: relative;
        }


        /*  Styles for this example */

        .parallax-image.skrollable-between {
            display: block;
        }

        .no-skrollr .parallax-image-wrapper {
            display: none !important;
        }

        .parallax-image-wrapper {
            position: fixed;
            left: 0;
            width: 100%;
            overflow: hidden;

            height: 80vh;
            top: -80vh;
        }


        .parallax-image {
            display: none;
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background-repeat: no-repeat;
            background-position: center;
            background-size: cover;

            height: 100vh;
            top: 0;
        }


        .parallax-image.skrollable-between {
            display: block;
        }

        .no-skrollr .parallax-image-wrapper {
            display: none !important;
        }

        .gap {
            background: transparent center no-repeat;
            background-size: cover;
            height: 80vh;
        }

        .skrollr .gap {
            background: transparent !important;
        }

        #page-intro h1 {
            text-align: center;
            color: #fff;
            font: normal 60px 'Droid Serif', sans-serif;
            padding-top: 24vh;
        }

        @media (max-width: 800px) {
            #page-intro h1 {
                font-size: 42px;
                padding-top: 15vh;
            }
        }

        #page-intro .btn {
            color: #fff !important;
            display: block;
            margin: 40px auto;
            width: 200px;
            text-align: center;
            border: 1px solid #fff;
            padding: 18px 20px;
            border-radius: 4px;
            text-transform: uppercase;
            font-weight: bold;
            text-decoration: none;
        }

        .dummy-content {
            padding: 150px 0;
            background-color: #fff;
            color: #221f51;
            font-size: 24px;
            min-height: 800px;
            text-align: center;
        }

        .dummy-content h2 {
            font-weight: normal;
            color: #777;
        }

        .body-text {
            padding: 200px 0;
            background-color: #fff;
            color: #25373C;
            font-size: 18px;
            min-height: 100vh;
            text-align: center;
        }

        .body-text h2 {
            font-size: 42px;
            font-weight: normal;
            margin-bottom: 80px;
        }

        .body-text p {
            width: 28%;
            display: inline-block;
            text-align: left;
            padding: 20px;
            color: #45636B;
        }


        @media (max-width: 900px) {

            .body-text p {
                width: 100%;
            }

        }

        .gallery {
            background-color: #fff;
            color: #221f51;
            font: normal 24px sans-serif;
            min-height: 300vh;
            text-align: center;
            overflow: hidden;
        }

        .scroll-pause {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            padding-top: 20vh;
        }


        .scroll-pause .row {
            width: 200vw;
            height: 30vh;
            overflow: hidden;
        }

        .scroll-pause .row div {
            width: 11.5%;
            height: 90%;
            float: left;
            background-repeat: no-repeat;
            background-position: center;
            background-size: cover;
            margin: 0.5%;
            border-radius: 10px;
        }

        .scroll-pause .row div:first-child {
            margin-left: 0.4%;
        }

        .scroll-pause .row div:last-child {
            margin-right: 0.4%;
        }

        {#最后一个#}
        footer {
            background-color: rgb(255, 255, 255);
            box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.04);
            box-sizing: border-box;
            width: 100%;
            font: bold 16px sans-serif;
            text-align: left;
            padding: 50px 60px 55px;
            overflow: hidden;
        }

        /* Footer left */

        footer .footer-left {
            float: left;
        }

        footer h3 {
            color: #5383d3;
            font: normal 36px 'Cookie', cursive;
            margin: 0;
        }

        footer .footer-links {
            color: #95A4A9;
            margin: 22px 0 14px;
            padding: 0;
        }

        footer .footer-links a {
            display: inline-block;
            text-decoration: none;
            color: #50B575;
        }

        footer .footer-company-name {
            color: #8f9296;
            font-size: 14px;
            font-weight: normal;
            margin: 0;
        }


        /* Footer right */

        footer .footer-right {
            float: right;
            width: 100%;
        }

        /* The search form */

        footer form {
            position: relative;
        }

        footer form input {
            display: block;
            box-sizing: border-box;
            font: inherit;
            font-size: 14px;
            font-weight: normal;
            color: #32383A;
            width: 100%;
            padding: 18px 50px 18px 18px;
            outline: none;
            border: 1px solid #e0e0e0;
            border-radius: 2px;
            box-shadow: 0 1px 1px #eee;
        }

        footer form input:focus {
            border-color: #ccc;
        }

        /* Changing the placeholder color */

        footer form input::-webkit-input-placeholder {
            color: #5c666b;
        }

        footer form input::-moz-placeholder {
            opacity: 1;
            color: #5c666b;
        }

        footer form input:-ms-input-placeholder {
            color: #5c666b;
        }

        /* The magnify glass icon */

        footer form i {
            width: 20px;
            height: 20px;
            position: absolute;
            top: 16px;
            right: 18px;

            color: #d1d2d2;
            font-size: 20px;
        }
    </style>
{% endblock %}
{% block content %}
    <div
            class="parallax-image-wrapper"
            data-anchor-target="#page-intro"
            data-bottom-top="transform:translateY(200%)"
            data-top-bottom="transform:translateY(0)">

        <div
                class="parallax-image"
                style="background-image:url({% static 'img/coast.jpg' %})"
                data-anchor-target="#page-intro"
                data-bottom-top="transform: translateY(-80%);"
                data-top-bottom="transform: translateY(80%);"
        >

        </div>
    </div>
    <div id="skrollr-body">
        <!--第一部分-->
        <div id="page-intro" class="gap" style="background-image:url({% static 'img/coast.jpg' %}); ">
            <h1>更专业的就业指导，更好的对口帮扶</h1>
        </div>
        <!--第二部分文字页-->
        <div class="body-text">

            <h2>我们的就业指南</h2>

            <p data-300-center-top="transform: scale(0.8); opacity: 0"
               data-300-center-center="transform: scale(1); opacity: 1">
                更专业的指导：一般会采用共性指导和个性指导相结合的原则，通过课程，讲座或演讲等方式对大学生进行共性指导，与此同时，也会注重个
                性化的咨询与指导，帮助学生了解和发现自己的特质、专长，让每个人都可以制定自己个人的职业发展规划。
            </p>


            <p data-200-center-top="transform: scale(0.8); opacity: 0"
               data-200-center-center="transform: scale(1); opacity: 1">
                更优质的服务：在严峻的就业形势和众多竞争者的情况下，采⽤⼼理学的原理和⽅法指导⼤学⽣，从而达到让学生消除⼼理⼲扰，克服盲⽬⾃信等⼼理障碍。
                更好的帮助⼤学⽣建⽴既有理想⼜要努⼒创业的⼼理准备；指导他们在选择职业时避免盲⽬。
            </p>

            <p data-100-center-top="transform: scale(0.8); opacity: 0"
               data-100-center-center="transform: scale(1); opacity: 1">
                更精准的推送：就业信息是指通过各种媒体传播的与就业有关的新闻和状况。为了消除或减少⼤学⽣在收集信息、处理信息和反馈信息⽅⾯的问题，有必要指导⼤学⽣就业信息。
                引导⼤学⽣找出就业信息的来源、渠道和准确性，学会全⾯，准确地收集信息。
            </p>

        </div>
        <div class="gallery"></div>
        <!--第三部分图片页-->
        <div class="scroll-pause" data-anchor-target=".gallery" data-100p-top-top="transform:translateY(100%);"
             data-top-top="transform:translateY(0%)" data--150p-top-top=""
             data--300p-top-top="transform:translateY(-100%)">

            <div class="row" data-anchor-target=".gallery" data-top-top="transform: translateX(0%);"
                 data--150p-top-top="transform: translateX(-50%);">
                {% for article in article_num %}
                    <div style="background-image:url({% static 'img/gradientColor1.jpg' %}); text-align: center;"
                         class="card-body">
                        <br>
                        <br>
                        <a href="/articlelist/{{ article.id }}/content" class="text-dark">{{ article.title }}</a>
                        <br>
                        <br>
                        <br>
                        <p class="text-right"><small>{{ article.create_time }}</small></p>
                    </div>
                {% endfor %}
            </div>


            <div class="row" data-anchor-target=".gallery" data-top-top="transform: translateX(-50%);"
                 data--150p-top-top="transform: translateX(0);">

                {% for position in position_num %}
                    <div style="background-image:url({% static 'img/gradientColor.jpg' %}); text-align: center;"
                         class="card-body">
                        <br>
                        <a href="/positionlist/{{ position.id }}/content" class="text-dark">{{ position.corporation }}</a>
{#                        <p class="text-muted">专业需求：{{ position.required_specialty }}</p>#}
                        <p class="text-muted">招聘岗位：{{ position.position_name }}</p>
                        <br>
                        <p class="text-right"><small>{{ position.create_time }}</small></p>
                    </div>
                {% endfor %}
            </div>
        </div>
        <!--第四部分脚页-->
        <footer>
            <div class="footer-left">
                <p class="footer-links">
                    <a href="/index">首页</a>
                    ·
                    <a href="/positionlist/">职位</a>
                    ·
                    <a href="/articlelist/">资讯</a>
                    ·
                    <a href="/admin/">管理</a>
                </p>
                <p class="footer-company-name">Employment guidance &copy; 2023</p>
            </div>
        </footer>
    </div>
{% endblock %}
{% block js %}
    <script src={% static 'js/skrollr.min.js' %}></script>
    <script>
        skrollr.init();
    </script>
{% endblock %}